package Application.FirstApplication.view.scene
{	
	import Application.FirstApplication.def.Manager;
	
	import MapBase.logic.MapBase;
	
	import com.utils.keymanager.Key;
	import com.utils.keymanager.KeyCombo;
	
	import core.avatar.AvatarPandF;
	
	import def.XG;
	
	import flash.display.Sprite;
	import flash.events.Event;

	public class HomeScene extends SceneMapBase
	{
		static public const NAME : String = "homeMap"; 
		
		private var avatar : AvatarPandF;
		
		public function HomeScene()
		{
			super(NAME);
			
			var keyCombo : KeyCombo = Manager.KM.createKeyCombo(Key.UP);
			keyCombo.addEventListener(KeyCombo.COMBO_PRESSED,OnWalk);
			
			this.addEventListener(MAPBASE_INITCOMPLET,OnInitComplete);
		}
		
		public function init():void
		{
			avatar = new AvatarPandF;
			
			avatar.build("Avatar_Pand");
			
			addEntityToWorld(avatar,"");
		}
		
		public function OnInitComplete(evt : Event = null) : void
		{
			init();	
		}
		
		private function OnWalk(evt : Event) : void
		{
		
		}
		
		public function destory() : void
		{
			
		}
	}
}